@echo off

SET APPHOME=%~dp0
SET LIBDIR=%APPHOME%lib
SET CLSPATH=conf
SET JAVA_OPTS=

if exist ./conf/server.conf (for /f "tokens=* delims=server.java.opts=" %%i in ('findstr "server.java.opts=*" %APPHOME%conf\server.conf') do set JAVA_OPTS=%%i)

goto RUN

:RUN
echo (Using JAVA_OPTS=%JAVA_OPTS%)...
echo server is started.
java %JAVA_OPTS% -cp conf/;%LIBDIR%/*; priv.winnine.WNApiApplication 2>&1 &
goto END

:END
